



local DragonCiTiaoNet = require("copy.Proto").DragonCiTiaoNet
local RoleBase  = require("role.Proto").RoleBase
local Attr  = require("role.Proto").Attr
local ItemData = require("bag.Proto").ItemData
local CombatFinishData = require("combat.Proto").CombatFinishData
local SkillNet = require("hero.Proto").SkillNet

CG_MOZHU_QUERY = {}
MoZhuRoleRankNet = {
    {"rank",          1,    "byte"},
    {"hurt",          1,    "double"},
    {"roleBase",      1,    RoleBase},
}
MoZhuUnionRankNet = {
    {"rank",          1,    "byte"},
    {"unionUuid",     1,   "string"},
    {"name",          1,    "string"},
    {"bannerID",	  1,"byte"},			--公会旗帜ID
  --  {"lv",			  1,"byte"},         --公会等级
    {"hurt",          1,    "double"},
    {"svrName",       1,    "string"},    -- 所在区服
}

MoZhuUseHeroNet = {
    {"uuid",          1,    "string"},       -- 英雄的唯一标识
}

GC_MOZHU_QUERY = {
    {"isOpen",        1,        "byte"},
    {"isRead",        1,        "byte"},      -- 词条是否读取
    {"time",           1,         "int"},    -- 活动时间
    {"endTime",       1,         "int"},     -- 结束/开始 倒计时
    {"tzCnt",         1,         "byte"},    -- 挑战次数
    {"restCnt",       1,         "byte"},    -- 重置次数
    {"restNeed",      1,         "int"},
    {"jijieTime",     1,        "int"},     -- 集结倒计时
    {"buffEndTime",   1,         "int"},    -- BUF 结束倒计时
    {"upBuffNeed",    1,         "int"},    -- 升级BUF 所需要钻石
    {"post",          1,          "byte"},   -- 职位
    {"buffLv",        1,          "byte"},   -- BUF LV
    {"unionDot",      1,          "byte"},   -- 公会奖励红点
    {"buff",          3,         Attr},     -- BUFF 增加的属性
    {"nextBuff",      3,         Attr},     -- 下一级BUFF
    {"ciTiao",        3,   DragonCiTiaoNet}, -- 词条
    {"useHero",      20,   MoZhuUseHeroNet},   --  已经使用过的 英雄
    {"roleList",     10,   MoZhuRoleRankNet},
    {"unionList",    10,   MoZhuUnionRankNet},
    {"myRole",        2,   MoZhuRoleRankNet},
    {"myUnion",       2,   MoZhuUnionRankNet},
}

CG_MOZHU_RANK_QUERY = {
    {"type",          1,          "byte"},
}
MoZhuRewardNet = {
    {"id",            1,          "byte"},
    {"minRank",       1,          "int"},
    {"maxRank",       1,          "int"},
    {"reward",        5,          ItemData},
}
GC_MOZHU_RANK_QUERY = {
    {"type",          1,          "byte"},
    {"roleList",    100,        MoZhuRoleRankNet},
    {"unionList",   50,         MoZhuUnionRankNet},
    {"rewardList",  20,         MoZhuRewardNet},   
}


GC_MOZHU_FIGHT_END = {
	{"rank",          1,    "int"},   -- 排名
	{"hurt",          1,  "double"},  -- 此次伤害
	{"oldRank",       1,  "int"},  -- 个人排名 old
    {"unionRank",     1,   "int"},   -- 公会排名
    {"oldUnionRank",  1,   "int"},   -- 公会老的排名
	{"data",			1,		CombatFinishData},
}

-- 集结
CG_MOZHU_JIJIE_DO = {
    {"str",       1,   "string"},
}
-- 集结返回一个 倒计时  更新主界面
GC_MOZHU_JIJIE_DO = {
    {"jijieTime",     1,        "int"},     -- 集结倒计时
}

CG_MOZHU_UNION_HURT_REWARD = {}
MozhuUnionHurtNet = {
    {"id",           1,    "int"},
    {"hurt",         1,    "double"},
    {"reward",       5,    ItemData},
}

GC_MOZHU_UNION_HURT_REWARD = {
    {"isEnd",        1,    "byte"},
    {"getId",        1,     "int"},
    {"list",        10,   MozhuUnionHurtNet},
}

CG_MOZHU_REWARD_GET = {
    {"id",            1,   "int"},
}

GC_MOZHU_REWARD_GET = {
    {"id",            1,   "int"},
}

CG_MOZHU_RESET = {}
GC_MOZHU_RESET = {
    {"tzCnt",         1,         "byte"},    -- 挑战次数
    {"restCnt",       1,         "byte"},    -- 重置次数
    {"restNeed",      1,         "int"},
}

CG_MOZHU_BUFF_UP ={}

GC_MOZHU_BUFF_UP = {
    {"buffEndTime",   1,         "int"},    -- BUF 结束倒计时
    {"upBuffNeed",    1,         "int"},    -- 升级BUF 所需要钻石
    {"buffLv",        1,          "byte"},   -- BUF LV
    {"buff",          3,         Attr},     -- BUFF 增加的属性
    {"nextBuff",      3,         Attr},     -- 下一级BUFF
}

CG_MOZHU_CITIAO_QUERY = {}
GC_MOZHU_CITIAO_QUERY = {
    {"time",          1,       "int"},
    {"list",          3,  DragonCiTiaoNet}, 
}

-- 冰龙巢穴  BOSS 详情查询  
CG_MOZHU_BOSS_QUERY = {
}

GC_MOZHU_BOSS_QUERY = {
	{"id",           1,  "byte"},
	{"desc",         1,  "string"},    -- 背景信息
	{"skillList",    5,   SkillNet},   -- 技能详情
}

GC_MOZHU_ACT_OVER = {
}